package designMode.zeRenLian;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Request request = new Request();
		request.setRequestStr("request");
		Response response = new Response();
		response.setResponseStr("response");
		FilterChain fc2 = new FilterChain();
		fc2.addFilter(new No2Filter()).addFilter(new No3Filter());
		FilterChain fc = new FilterChain();
		fc.addFilter(new No1Filter()).addFilter(fc2).addFilter(new No4Filter());
		fc.doFilter(request, response, fc);
		System.out.println(request.getRequestStr());
		System.out.println(response.getResponseStr());
	}

}
